<?php
require_once('functions/connectDB.php');
if($_POST[newGroupName]!=null){
	$query = "INSERT INTO groups (groupName) VALUES('$_POST[newGroupName]')";
}
else {echo '<p>The new group is null! Please check again!</p>';}
$results = mysql_query($query) or die(mysql_error());
if($results)
	{
		echo '<p>A new group is added successfully!</p>';
	}
mysql_close($db);

?>
